import { defineStore } from 'pinia'

export const useConfigStore = defineStore('configStore', {
  state: () => {
    return {
      showModel: false, // 用于限制弹窗下禁止滚动
      isLoginPopupShow: false
    }
  },
  actions: {
    setLoginPopup(bool?: boolean) {
      this.isLoginPopupShow = bool ?? !this.isLoginPopupShow
    }
  }
})
